The phrase started with flirting but now covers any cold outreach through direct messages, including creators pitching brands, founders networking, and salespeople prospecting.
Done well, a DM approach is personal and direct. Done badly, it is spam. The difference is usually whether the message shows genuine familiarity with the person it is sent to.