/**
 * We will rotate the app window during app transition per current screen orientation and app's orientation.
 * The width and height would be temporarily changed during the transition in this function.
 */