Well, that’s what I learned in training in 1994, so it’s been around since at least then.
Note that there’s ethical and then there’s legal. It’s not ethical. (that doens’t mean that a psychiatrist can’t get sued for it - and usually the malpractice carrier does NOT cover those damages)