Previously, the new frame was always added as root frame and did not have a parent. Now, the common root frame of all selected nodes is detected and the new frame is attached to it. Pull Request: https://projects.blender.org/blender/blender/pulls/121972