Warwickshire pulled off the third biggest run-chase in their history to record a sensational five-wicket Rothesay County Championship victory over Worcestershire at Edgbaston.