Why changing example to port it to VR doesn't work?

You might want to give VTK master a try. VTK 9.0 (unfortunately) is pretty old at this point.

Also I don’t think we rely on SDL2 for the VR stuff anymore. So you shouldn’t need it (at least with VTK master)