Open in new window if no windows exist on this desktop

Brian Kim fa 8 anys updated by Nimi Wariboko Jr fa 8 anys 1
I know open_files_in_new_window controls whether or not files open in a new tab or a new window. However, in OS X with virtual desktops, it would be helpful to have an option to always open files in the current desktop, spawning a new window if there are no active windows there.
Likewise, if right click the doc icon there should be option to open a new window.