Seen a few people do this.
The hardest part is getting the OEM socket out in the first place.
The existing socket has a short wire and conector plug.
Just be mindful that USB power chargers use power all the time, so it's not recommended to connect to the starter battery feed without a switch.
Or, use an ignition feed.
Or, use a leisure battery feed.