proper mouse floating window moving and resizing