How To Release Mouse Lock On Game Window?

When playing a game either in the editor or stand-alone, the game doesn’t allow the mouse to go outside of the game window. I need to be able to move in and out freely even if the game has focus. Does anyone know how to accomplish this?

By default mouse doesn’t lock to viewport neither in editor nor in game.
How did you lock mouse? Try to find “Set Input Mode Game and UI” or “LockMouseToViewport”.

In editor Shift+F1 to unlock mouse.