What can I use to fill a 6-10mm gap between ceiling and front door structure?
I think your third idea will work and look the best.

First fill the void with expanding foam, allow the foam to cure, then cut it off flush with the face of the existing door trim.

Then cover the area with whatever molding/trim you find most aesthetically pleasing. You may wish to miter or cope the corners to get a more finished appearance.