Adding interactive function MoveWindow