[fix] Window drag

* Fixed window dragging
Window resize

* Added window resize