ui: resize window by dragging from the edges