That's an area where Mozilla could have distinguished itself by being very developer friendly. A few years ago I was looking into embedding a browser and XUL would have been a good fit but it was pretty obvious that it wasn't supported well.
Same for their Javascript engine. Node could be running on Mozilla code instead of V8 if Mozilla had been more developer friendly.
GeckoView is going to be the basis of new products, so I think it will have a more secure future than some past Mozilla efforts: https://wiki.mozilla.org/Mobile/GeckoView
There's more to Electron than that, but this might make it more feasible.
This was actually a thing a decade ago. But Mozilla did not keep engine and browser well enough separated, causing a lot of overhead for app developers basing their programs on the gecko engine.