If animated window is near viewport edges, perspective projection
distorts it in undesired way. To fix that, glide effect moves the
window to the origin, "applies" perspective projection, and moves
it back.
That's not the greatest way to fix this bug, but it works.
BUG: 394245