Fix #1319

Make game document window non-modal