This is doable but unappealing as the OS will see the display is gone, and relayout the desktop environment every time you switch. Depending on your OS, and your personal concerns about all your environment behaviors, you might not care. I know I would be very annoyed by this.