Efrem's method will work, of course, or you could also just buy it as two separate r/t's.
1 Denver-wherever
2 wherever-Dubai
This will probably be cheaper, and gives you a lot of flexibility, but there is a greater danger of trouble if you miss a connection.