I have built pretty complex plugins(internal) using the GUI, x code, WebView. Most of them are using either NSPanel or NSWindow.
I never was able to manage adding something integrated to sketch like invision craft or Auto layout. https://animaapp.github.io/Auto-Layout/
Auto layout now even changes the group folder color in the layers panel. Just want to understand how these things are done. Like how are these integrated together.