I'm pretty sure you can still do that, you can at least with Android phones, but it does require a physical cable.
It works on my bargain basement Moto G that way
It works on my bargain basement Moto G that way