To move windows, click and hold on any window titlebar and hit the shortcut you defined for the desktop (in my case it’s command+1,2,3) and the window will automatically moved to this dekstop.