Mouse click issue when playing in standalone game. please help!!!!

When playing as a standalone game, if the mouse is clicked in the corner, the window is resized or the click is not recognized.
Why is this?