You would label that borrowed even in Dm? Its not just labeled as harmonic (or melodic) minor? Im a little rusty on my minor tonality theory.....Understanding the error about the Bdim that wasn't, you'd still call this chord an applied dominant since you are "borrowing" a V7 from another key to drive you to a particular chord. This kind of thing is used pretty frequently.
