With the right hardware, there are even ways to do this just by configuring the laptop's USB port into gadget mode and then... plugging it in.
https://xairy.io/articles/thinkpad-xdci