backport [TIMOB-14190] Window orientation