How to implement the custom input function?

Drag and drop components onto the interface, and there will be other components on the input end. How can this function be implemented? Is there anything you can refer to?
组合预设

You can override AddedToDocument() to place other components.
The linked example may be helpful to you.

c#_Create Value List GH Component for Custom GH Plugin