I did exactly this with a cheap Windows 10 tablet. In my case I needed to run the cables out of the back of the unit so I soldered directly to the VBUS, GND and D+/D- signals of the Micro USB socket on the PCB, injecting 5V on VBUS. This may not be the best way of doing it but it worked for me!