API to move a window and a button