Former Wimbledon champion Petra Kvitova won her first title of the season at the Dubai Championships, beating Sara Errani 6-2 1-6 6-1.