Function Window.centerOnParentWindow

centers window on parent window, do nothing if there is no parent window

void centerOnParentWindow();