My problem arises because sometimes I'm doing something on my MacBook and the user session logs out, as if I'd restarted the computer. Normally it's something exerting that must overload my RAM, like navigating and suddenly opening too many windows (e.g. I was looking for flights and the option was checked to automatically open windows to look in 4 or 5 more different sites).
The thing is, if I have something open like a game, or a half-filled form on Safari I wouldn't wanna lose progress on, like this question... I know that the program stays open because I've been able to still hear the game music and sounds in the background, as if nothing had happened.
So what I was wondering, is if there is a way to force macOS (10.12.5) to forcefully show a window that is not appearing on the dock, mission control or anywhere else.
By the way, the only way I've been able to restart said program, the game for example, has been by terminating the process on the activity monitor. Trying to open it normally doesn't work.