Miami trailed 91-90 after Kyle Kuzma made a 3-pointer for Los Angeles with 1:23 left. But Dragic got the lead back for the Heat with about 15 seconds remaining and Isaiah Thomas missed a 10-foot fallaway jumper at the buzzer for the Lakers.
The road win left the Heat 15 1/2 games back in the Eastern Conference, in a virtual tie with Milwaukee for seventh. Miami (37-33) has played two more games than the Bucks.
Thomas went 1 for 9 from the field.
The Lakers (31-38) led 79-78 when the Heat ramped up their defense during a 10-2 run. The Lakers went almost 4 1/2 minutes without a field goal.
Heat: With G Dwyane Wade out for a third consecutive game with a sore left hamstring, Miami recalled Derrick Jones Jr. from its G-League affiliate. He has three days of eligibility on his two-way contract and the development league season ends March 24, so he could remain with the Heat for the duration of the season. ... Miami had lost six straight road games.
Lakers: Kuzma returned after missing the previous game with a sore ankle. ... Lopez was a game-time decision with back tightness. ... F Brandon Ingram, who has missed the last eight games with a sore groin, has been updated to day to day.
Heat: Return home to play Denver on Monday.
Lakers: Begin a four-game road trip Monday in Indiana.
More AP NBA: www.apnews.com/tags/NBAbasketball