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

@svan Sadly it doesn’t help cause when the bug happenes sit doesn’t call draw anymore