Function Window.moveAndResizeWindow

set window rectangle

bool moveAndResizeWindow(
  Rect rc,
  bool activate = false
);