I split a core library for ui system in editor.

https://github.com/easylogic/sapa

I collected only what I needed while making the editor. I think it could be used in other ways