'Custom CSS' Button on Toolbar
The Customize panel is loaded using AJAX. From there, clicking on the Custom CSS gear icon AJAX loads the Ace editor and the Custom CSS form modal.
I don't much about this topic, but I believe you could start looking here:
Custom CSS form modal