Matt Duchene pushed it to 4-1 at 13:30 when Joel Hanley’s shot from the blue line deflected off his stick and in.
Berggren cut it to 4-2 with a goal 22 seconds later at 13:52, scoring on a rebound off a shot from Gostisbehere.
“It’s good to contribute with some offense, that’s my game,” Berggren said. “Nice goal, nice play by [Gostisbehere]. We didn’t get the win though, so it’s kind of boring after.”
Joe Veleno made it 4-3 at 13:21 of the third period on the power play on a rebound from the side of the crease, but Pavelski extended it to 5-3 on the power play 30 seconds later at 13:51 after tipping in a shot from the slot.
Heiskanen scored into an empty net at 19:18 for the 6-3 final.
NOTES: Stars forward Jamie Benn got his 500th NHL assist on Heiskanen’s first goal, becoming just the third player in their history to reach that milestone with the franchise (Mike Modano, 802; Neal Broten, 593); he also tied Broten for second in franchise history with 867 points (367 goals, 500 assists). ... Red Wings forward David Perron did not play as he served the first of a six-game suspension for cross-checking Ottawa Senators defenseman Artem Zub on Saturday.