That changed through the rise of KVM ... monitor and that’s it. Another desktop may require a second USB-B port on the monitor alongside a video output port to the monitor like HDMI or DisplayPort.
For example, if your laptop and monitor both support DisplayPort 2.1 ... If your computer supports USB 3.2, for example, you'll want a KVM switch with that same capability.
4 Port HDMI KVM Switch: This dual monitor HDMI+HDMI KVM Switch can share 4K HD dual monitor and 3 USB 3.0 devices between 4 computers. This dual monitor KVM Switch is for you to control single or ...