Disable workspace switch when opening a new window of a program already opened in another workspace
You can do this by turning off the "When switching to an application, switch to a space with open windows for the application" checkbox in Mission Control preferences.

However, this will mean that when you toggle to a different application, with Cmd+Tab or another mechanism, you'll stay in the same workspace. This may or many not be convenient for your workflow.