Resize window on drag