Matthews gave the Maple Leafs a 4-1 lead with his fourth goal in the past five games at 13:05 when he took a pass from Marner at the top of the goal crease on a give-and-go.
"They got three goals in an under 10 minutes span; it's crazy," Boudreau said. "These are the times when something goes bad, you have to pull it up and get stronger, go after them."
Mayhew scored his first NHL goal with 1:02 remaining for the 4-2 final.
"It was pretty special. I had 11 relatives here tonight and it was surreal," Mayhew said. "It was something I wanted to do since I was probably five years old, and I'm lucky enough to be able to do it."
Kunin gave the Wild a 1-0 lead at 5:30 of the first period.
John Tavares tied it 1-1 with a slap shot over Dubnyk's glove from the left boards at 1:58 of the second.
"Just the way the circumstances were and my instincts when I saw Mitch in front, it was just to shoot it then rather than carrying it in a bit more and giving the goalie time to recover," Tavares said. "I was able to put it in a good spot and Mitch gave me a great screen."