Editor Plugin - Copy Materials from a to b

i am confused about your answer…

actually i wnat to do the same as the Drag&Drop, Move the Materials and also redirect the references