It’s not a door vs window/opening. Any kind of opening in the middle of the wall gives you that result. And openings that are intersecting the outer boundary of the wall are translated correctly in Dynamo.

Yeah, it is strange
However, lowering the sill of the offending window (to the same level as the other window) seems to solve the issue, in this case. No change in definition.
I have no idea why this happens though