It is unbelievable how bad window management is at macos.
Specially if you use multiple desktops it's impossible to not kill your workflow with the inconcistencies. You press a dock icon and you have no clue if it will open a new window in the current desktop or if it will switch to another desktop and show you an already open window.