If you want to go to another window that's currently open on another Space/Desktop, clicking the application on the Dock redirects you to the Space it is currently on. I find that to be quite annoying actually. I'm trying to find a way to stop that behavior because it's really annoying and instead move the window to my current workspace.