I've been dreading this for a while now. The flashing job the installers did is pretty sloppy and there are some other issues the original builder(s) left behind. First step is to cut all the expanding foam flush to the door frame and remove all the masking tape.
All images copyright Kevin A. Spousta. Unauthorized use is prohibited.