Delay making window visible until input arrives