I am using one of these
i-tec hubs to allow easy switching of peripherals between my Hackintosh and my wife's work (Windows laptop). Not cheap but works really well. All cables are detachable and works on USB-3 or Thunderbolt. They do other ones if you don't need 2x4k output...
As an Amazon Associate, MacRumors earns a commission from qualifying purchases made through links in this post.