Implement resizable and dragable window
Improve window functionality