I've worked on this separate from SweetHome3D, but I think it should be possible to have something similar in SweetHome3DJS: https://github.com/bobvanderlinden/sweethomewebxr/

It works with an exported OBJ file.

You can see the result here: https://bobvanderlinden.github.io/sweethomewebxr/