It's (still) not working since the pool in the operator will not allow this operator to run without context. For the window/area/screen has to be created somewhere (maybe in WM_init_game ). I have no idea on what should be done to initialize it here, so if anyone knows how to proceed, please help here. * side note: should we also have it as a command line option?