Limit Mouse Cursor Position to certain area on viewport

Did u find out how to do it?