The main thing it glorifies I think is that boys will be boys, not drugs per se. Those who criticize them just don't understand that boys have to find their own way, and it ain't always pretty.
Compare it with Snowfall: the main character's family has at least some history of drug dealing and he only succeeds because he discovers a cheap and ultra-addictive recipe for crack cocaine and because the CI-freaking-A is using him to fund the global war on communism. Recurring characters get killed off in dumb gang skirmishes all the time and the drug addict with the most screen time is literally a shell of her former self that can barely get through the day up until the latest season.
Or compare it with The Wire: all the people involved in the drug game are only in it because they have literally nothing else to live for except the glory of the game. Basically no one survives except the cops and Bubbles never really gets fully clean.
This is only partially accurate. There are two primary "pipelines" to opioid addiction; one of them is overreliance on painkillers, but the other one is fairly standard risk-seeking escalation through a socially deleterious lifestyle, often culminating in an OD or a prison sentence after a predictable years-long risk escalation path through social drug use.
I will agree that I don't think there's a lot of media showing meth or fentanyl use as cool and attractive, but my overall point is less that a specific drug needs to be shown to be cool, and more that the artistic construction of the drug lifestyle as alternative, exciting, rebellious etc. wears down the emotional barriers of a lot of people when they're young and malleable. I've done a good number of drugs in my day and I can assure you that in the case of most of the people I did drugs with, early exposure to "drugs are cool" art and music played a part in their ready acceptance of the lifestyle.
As one example, if you go to a high school party, often the riskiest, coolest kids will go off in private and do drugs. There's no feedback loop in the media to make this look pathetic or sketchy--on the contrary, most drug use is played for laughs, or it's added as another dimension to a lifestyle that's supposed to be tragic but instead looks awesome. "Oh my god, look at this guy's life, he's a mess, his apartment is so dirty, he's doing lines off the mirror... with a smoking hot supermodel-actress while we do a B-plot story about how his small-town parents are boring and stodgy... and he's a rock star..."
I don't really know whether or not you could seriously reduce drug use by not showing it in the media, but I do believe that showing it as positively as it is now increases drug use. And I haven't even mentioned the music surrounding drugs.
Oxy is hugely glamorized in rap music. Drinking "lean" / cough syrup and doing Percocet pills. Future song "Molly Percocet". The Weeknd's record label is called XO for Ecstasy / Oxy.
There's plenty of alcohol, weed, cocaine, and hallucinogens, I'll give you that, but they're not gateways to opioid addiction. Breaking Bad glorifying the manufacture and sale of meth is the only except I can think of - Oxy, fentanyl, and p2p meth aren't exactly the drugs musicians and Hollywood turn to as a lyrical/plot device.
There's also a fine line between glorifying and entertaining. I struggle to find any such glorification in shows like Snowfall, for example, which mostly shows the very negative impacts of crack cocaine in cities. There's only a single character in the entire run that manages to overcome the drug and the main character is a tragic anti-hero at best.
Any time heroin or another opioid comes up in pop culture it's almost always in the context of horrifying drug dens.