If you have any ability to try custom components, you could almost drop in one of Workflow Editor - React Flow solution's. This is similar to retool's WorkFlow editor(they use react-flow)
Also I made a post about my reorderable tree component, Reorderable Custom Component
The same library also allows multi parent relationships etc