Function Window.updateWindowOrContentSize

update current content size based on windowOrContentResizeMode flag, usually used when window is resized

void updateWindowOrContentSize();