The functionality doesn't exist directly from within the Dock (although you may be able to AppleScript something...), but you can assign specific applications to Spaces. In Spaces' Preference Pane, click the "+" button to add an application to an assigned Space.
Did this halfway answer your question?