Revert "Switch from UIWindow to UIView."

This reverts commit dd27b24cc4063cf64412ed83b59f54963dcc01ef.