- I would get some expandable foam in the can. For windows and doors. It has minimal expansion. Fill the void/ crack flush with the wall or a little less leaving a say 1/8" then I would caulk it with exterior latex caulking. Since the door was reset and now is closing properly you have little choice.
- Get some molding to hide the now shown crack, paint and caulk it.