Programmatically creating UI to edit a resource

Godot Version

4.3

Question

Clearly somewhere inside the Godot IDE code, there is an algorithm for taking any type of Resource and producing the control nodes necessary to edit it. This is clear because of course the IDE itself creates such UIs inside the inspector panel as needed.

When creating tool scripts or add-ons, it would be very helpful to be able to access such functionality, because when it came time to prompt the user for such-and-such data, you could just package that data up into a Resource class and then ask for the corresponding UI, throw it into a popup window, and show it to the user. The UI would need to either automatically return an instance of the Resource class containing the user-edited data when done, or emit signals so that the client could update their own instance.

Is that functionality accessible anywhere in GDScript?