This is achieved by attaching one end of the adapter to the charging end of your Apple Pencil and the other end to a cable via a female to female connection. Adapter is specifically designed to make charging your Apple Pencil easier.
eBay