Win10+ has virtual desktops built in, before that I used the SysInternals Desktops utility.
To get Alt-1,2,3,4 working I use AutoHotKey. I can’t recall which script I use (been ages since I changed it) but it works like this one with some edits for keys.
https://github.com/pmb6tz/windows-desktop-switcher
For windows I definitely recommend also installing PowerToys. You can set up different snap grids for each desktop. Keeps things tidy with no overlapping windows.