Moved some window logic from Graphiti to Raindance