This works for me:
Lua Code:
local frame = CreateFrame("Frame", "rMM_DurabilityDragFrame", UIParent)
frame:SetSize(DurabilityFrame:GetWidth(),DurabilityFrame:GetHeight())
frame:SetPoint("CENTER",0,0)
--frame:SetPoint(DurabilityFrame:GetPoint())
--rCreateDragFrame(frame, dragFrameList, -2 , true) --frame, dragFrameList, inset, clamp
DurabilityFrame:SetParent(frame)
DurabilityFrame:SetAllPoints(frame)
hooksecurefunc(DurabilityFrame, "SetPoint", function(...)
DurabilityFrame:SetAllPoints(frame)
end)