Split UIWindow.cs into partial classes