Added the ability to open document windows.