Have second window with different perspective open only when a second monitor is connected? I have Blender on my laptop,  into which I sometimes plug an external monitor, and set up some different regions to make my workflow smoother/easier.

When I save and close my project, the multiple windows are saved as expected.  However the next time I open Blender, I might not have my second monitor connected, and both windows will be forced onto one display.  Is there a way to detect if my second monitor is connected when I open a project, and automatically get rid of the extra window when it is not?
Couldn't you create 2 different screen layouts? one for single monitor and another for duo monitor?

That way you'll have them both saved and you can switch between the 2 and then all you'd have to do is stretch blender to fit duo monitors.