Platform: add threading to NativeWindow