What a nice little problem! But I suspect that it has a typo, as you probably wanted to know the total amount of work done by gravity. I will however derive a formula for the force of gravity as a function of time, and if you average it over the lifetime of the particle you can calculate the average value of the force of gravity.
Now let me stop talking and actually solve the problem.
The mass of the raindrop falling in a vacuum as function of time t (measured in seconds) can be given by
M(t) = M0 - Δm t, where M0 is the initial mass of the raindrop, assuming that the raindrop evaporates before it hits the ground.
The force of gravity at time t can be given by
F = M0 g - Δm t g
The velocity of the particle at time t is given by v(t) = g t
The displacement of the particle dy during time interval dt is given by
dy = v dt = g t dt
The work done by the force of gravity during time interval dt is
dW = (M0 g - Δm g t) dx = (M0 g - Δm g t) g t dt
Finally
W = Integral from 0 to (M0/Δm) of (M0 g - Δm g t) g t dt =
M0 g2 (M0/Δm)2 / 2 - Δm g2 (M0/Δm)3 / 3 =
M03 g2 / (6 Δm2)
For comparison, the amount of work done by gravity on a steel ball with the same mass M0 during the same time interval t = M0/Δm is 3 times larger
Wball = M03 g2 / (2 Δm2)

Sofia A.
07/08/22
Gabrielius T.
Thank you.07/08/22