Distance is 11646 kilometers or 7237 miles or 6288 nautical miles
The distance is the theoretical air distance (great circle distance). Flying between the two locations' airports can be a different distance, depending on airport location and actual route chosen.
Map - Shortest path between Dallas and Baghdad
Location for Dallas
Location for Baghdad
The map is using a projection that makes land and oceans much wider near the south and north poles. The heading/course/bearing during a flight varies in most cases. Map based on image from NASA.