You buy a dock, there's dozens on the market. You connect everything in the dock, and then only one cable connects from the dock to the steam deck (in the image you can see the top cable connection with the steam). The steam deck does all the job of recognizing what you connected