It's true that thin and light laptops in recent years, like the MacBook Air, have changed the game for portability and performance — especially with the massive gains in the battery department.
You can use two Windows machines at once with a single keyboard and mouse without any special hardware. I had an extra laptop lying around that now connects with the same keyboard and mouse as my PC.
You can share a keyboard and mouse across multiple Windows and macOS computers, if you know the right tools to use.