Main window keeps disappearing

I am a relative beginner, and experiencing a problem with the main screen just sliding out of view, leaving the toolbars in situ - any advice greatly appreciated - Using Imac 2016 CApitan

Magic Mouse a problem ??

Can this be something related to previous post:

Look for some floating toolbars in different windows? are you using fullscreen?