Who is liable for damages if you leave your driver door open while putting packages in the back seat and a moving care hits the door?

You will definitely want a statement from witnesses, but typically the moving vehicle is responsible, as they have the most control of their vehicle, speed and obsticles.

Unless there was malicious negligence on your side, you should be in the clear from a fault standpoint.