Program "crashes" when I setResizable(true) and resize the Window

and also I’m pretty sure that’s not how draw() works