Named Slot Type restriction

I make extensive use of ‘user created widgets’ as templates/prefabs 90% of the time this involves a named slot as one of many other widgets within the ‘user created widget’. In prior instances I’ve not needed to enforce a specific ‘type’ of widget assigned to the named slot. Until now…

To aid in this, I created a simple check that gets called during PreConstruct. It works to detect whether the slot is empty, and if not whether the named slots child is of the appropriate type. (Testing with a single type for now)

However I’d like to take it a step further, and if the designer drags an unsupported widget into the slot, that widget should be removed and/or replaced.

This works fine “as code” however the editors hierarchy does not update to show the widget removed. In some instances the added child becomes impossible to delete without an editor restart, in others it can still be interacted with but the same PreConstruct code doesn’t detect any children.

I honestly just need the ability to add multiple children to a named slot without having to first remember to add a specific panel type.