Fix video window visibility issue on Windows when reparenting