now WindowManager is responsible for pause/resume game when windows are opened/closed

This resolves bug #2211 (Game resumes after entering dialogs spawned by game menu)
When WindowManager._session is not None, the game is paused when any window is opened.
When WindowManager._session is None, nothing happens.