iOS: made sure windows aren't made visible until they've finished being set-up.