-Fix: create SDL window in the thread that will handle SDL events