dx/dy should be against the regular window's rect, and need to be ignored when we're resizing. Instead, we use gravity to anchor the window's new rectangle when resizing.