Maybe I am not understanding you properly but....
Workspace is a ViewModel - it derives from ViewModelBase and is set as the DataContext for MainWindow.xaml.
In the code example above:
"(LayoutDocument)parameter" is the View object (or tab) being closed.
"((LayoutDocument)parameter).Content" is the ViewModel object being closed.
Steve