Borussia Dortmund beat Arsenal 3-2 in the Emirates Cup, despite the Gunners winning the post-match penalty shootout 5-4 at Emirates Stadium.