Fix assert failure caused by DrawingWindow constructor realizing itself before adding itself to the parent application instance