Good to know. Actually, a month ago I raised an issue about the importance of integrating PLotlyJS into Pluto #60389. @fonsp replied that they were working on it.
Tomorrow, I will have a go and test your approach, which is actually what we do really need in the connection between Pluto and PlotlyJS: Pluto window and the possibility of having a static HTML export.