Novak Djokovic won the ATP World Tour 500 tournament in Dubai for the third time in a row defeating Roger Federer in straight sets.