I can have a desktop for coding, a desktop for reference docs and previews, another for working on non-coding tasks, one with general browsing, one for chat/email/calendar, etc.
I've not found a satisfying way (on Mac OS on my Macbook or with various WMs — Sway is my go-to) to quickly replicate this ability to have multiple task oriented sets of windows visible at the same time and make them quickly switchable without multiple physical screens.