Added flag to use the root UIWindow as the snapshot view, instead of a superview. Useful for new UIWindow implementations.