Update all the attached widgets with the dragged widget of a stack
问题 Consider a stack of widgets as shown in the image. We can see that index 0 widget is attached with index 1, 2, 3, 4 widgets; ...; index 3 widget is attached with index 4 widget and index 4 widget is not attached with anyone. Now when I drag a widget, all the attached widget should also be dragged with it i.e. if I try to drag the index 2 widget, the dragged widgets should be the stack of index 2, 3, 4 widgets. if I try to drag the index 4 widget, the dragged widget should be only the index 4