You can connect Sony Xperia XZ Premium to your computer using a USB cable for data transfer.
How to connect USB cable from
Step 1: When you connect the cable, a notification will appear. Choose file transfer.
.jpg)
Step 2: On your computer, you can access for browsing.

That completes the setup; wish you all the best.