Sam has a good point, extend the AC power if you can do so safely. Best option.
If you are intent on extending the DC power, then you should plug the supplied Pan 3 power cable into a USB 2.0 Type-A Male-Female extension cable. The Pan 3 has a special L-shaped USB micro connector that has to fit into a specific-sized hole to stay waterproof. Also, if you use a straight USB micro connector then you won’t be able to mount the camera.
If you plan to use a Wyze outdoor power adapter to power it, then you can buy a pigtail adapter to convert the OPA’s straight USB micro connector to the Pan 3:
Or, if using a standard Type A power source, then you can use the original Pan 3 power cable with the 20ft USB 2.0 Type-A Male-Female extension cable that Wyze now offers:
Here is a thread I started on how far you can run cables. The more current the camera draws, the less the length. So, keep the run as short as possible on a Pan camera. A long cable could net you things like reboots when you use the motors. There are also some other ideas there on how to run power a distance: