When you say “clicking” is it the noise of the microswitch or the little latch servo operating? The first is a simple click, the second a sort of “bzzt”. Since the window drops, I’m guessing it’s the second. You’ll have to try, as Alibro says, pushing and pulling and lifting while operating the handle.
A new lock servo may be in order, and the door might have dropped, needing adjustment.
Silly dropping window, servo latch instead of reliable mechanical latch, microswitch, handle mount that rusts, lock cylinder that stops working, ally stop light that corrodes and looks horrible - whoever designed the Freelander tailgate should be beaten with a sh!tty stick.