[[ Bug 12765 ]] Use appropriate transform for window rect