So here is my attempt:
If we lift the weight W by a small vertical distance Δh, W will gain P.E. of Δh x mg in the process. Since energy is conserved, the work done by the wire (i.e. the shortening of the wire by a small length, which we call Δl must be equal to the gain in P.E. by the weight.)...