Russian Andrey Rublev was given a tough test early on, but finished in style to beat Britain's Jack Draper and win the Qatar Open.