Having such functionality would greatly expand the possible use cases for krpano to become an interface builder for VR focused not only on panoramas, but on serving whatever content in VR.
Mozilla Firefox Reality and Oculus Browser already have it:
https://www.youtube.com/watch?v=p05SKePDAcs&feature=emb_logo
I have also found a note on a workaround that can be found in Amazon Sumerian
https://docs.sumerian.amazonaws.com/articles/html3d/
Also, A-frame has a lot of developed resources that would fit in krpano VR mode. I don't know how applicable codewise they would be though.