Rory McIlroy congratulated his friend Shane Lowry on his victory at the BMW PGA Championship at Wentworth.