The WindowedDocumentUIService provides methods to create and show documents as windows.
The TabbedDocumentUIService provides methods to create and show documents as tabs.
The CurrentWindowService provides methods to close the current window.
The following example demonstrates how to use the above services in a View Model.