Adds syncing to a few operations that change selection, to avoid some annoyances (like drag and drop of hierarchy to a different collection only linking the parent to the collection). Note that there's further refinement work for selection syncing in D5572, but is awaiting some code design decisions. Meanwhile such quite annoying issues should be fixed. Addresses T75610.