Simon Yates withdrew before the start of the stage after becoming the first rider to test positive for coronavirus at a Grand Tour.
Dowsett also gave the Israel Start-Up Nation team their first win in a stage race or at a WorldTour event.
The 32-year-old crossed the line more than a minute ahead of Italian Salvatore Puccio of Ineos and Briton Matthew Holmes of WorldTeam Lotto after the 200km flat run from Giovinazzo to Vieste.
“I don’t know what to say, I can’t say how much I needed a win like this in such a difficult year,” said Dowsett.
“I don’t have a contract yet for next year and with a baby coming in January, I really needed such a result so badly, I cannot believe it.”
Dowsett left his five breakaway companions in his wake with 20km to go, finishing as in a time trial, his speciality, where in 2015 he held the world Hour Record before it was broke by compatriot Bradley Wiggins.
The rider made a peculiar tweet ahead of the race saying he hoped his day would get better.
“Cleaned my teeth then realised I hadn’t drunk my freshly brewed coffee yet this morning. I really hope the day picks up because it started with a nightmare.”