Update parent field in Resource panel after drag and drop current resource

Update the parent fields if you currently editing a resource and drag and drop that resource.
(cherry picked from commit 0ffa4ef268eb00c814cb9775b24f70c2ede0edf3)