Needing birdie at the last to win the Dubai Desert Classic, Rory McIlroy contrived to find the water with his second shot into the par five 18th.