RJ Barrett posted a game-high 28 points before Immanuel Quickley sunk a game-winning three as time expired to push the Toronto Raptors over the Charlotte Hornets 97-96.