In order to move a component from one parent to another in the structure, click the component, press and hold ALT on the keyboard, drag the link over to the new component you want it to be built in to, then let go.
Unfortunately it is not possible to move components using this technique on touch devices.
It is also possible to move a component to another parent using the move action in the table.