It could be at the beginning. I'm sure I've heard it done Dm, Em, Dm, Em, à la moondance. It's definitely Dorian if you do that.Summertime isn’t Dorian,
I'm sure anything could be dorian if you reharmonise it. 🙂 but I can't see where a D7 figures in D dorian.
I can see where it can work in Summertime as a secondary dominant into chord IV (Gm7).
