Check why new window opens when I drew something.