disclaimer: i've never done a repair like this...
but i do enjoy watching others fix things!
it looks like part of the challenge is determining the issue (alignment, shape, loose hinges, accident damage) related to the door fit.
then it appears important to know if the door frame is forged/cast aluminum (older) or extruded (newer) construction.
since the cast material cannot be reshaped.
it looks like one approach is to remove the door 'inner skin'
shape the outer skin to fit and then re rivet the inner skin to hold the shape...
here are a couple of additional relevant threads....
there are other threads with photos too.
i'm always surprised by how much the photos help solve problems.
u may need new door gaskets and that's a whole nother subject with many threads too!