Borussia Dortmund ended Bayern Munich's recent domination of German football as they regained the Supercup with a 4-2 win.