Is there a way to detect if the player's mouse moves outside of the winder?

So I was wondering if you could detect when a player’s mouse is outside of the game window. I want to do this because I have a hover effect on a GUI at the bottom of my screen but if you go all the way down to outside of the window, the hover effect does not detect a mouse leave.

MouseLeave detects when a user’s mouse moves off a GUI Object. Maybe it’ll help.

As the above post suggests use the MouseEnter/MouseLeave events which are fired whenever your mouse enters/leaves a Gui element respectively.