You could consider taking a look at Flutter's approach (it's basically a UI SDK built up from scratch around Skia). It's entirely open source and likely contains some decent tips (and you can piggyback off the engine layer and bolt on a different language for scripting).