Better drag window handling