How can I detect if the game's window has been taken down?

Hi all! Not so long ago I created a pause menu for my game. Now what I wanna do is to automatically open it if the player takes the game’s window down. Is it possible to detect it? How?

Look here: Unity - Scripting API: MonoBehaviour.OnApplicationFocus(bool)