In From Hell, he played the opium addicted detective...
What they said about the film that Ledger did not complete was that it has a sort of "shift" point AKA "through the looking glass" sort of thing, so they were thinking if he went to this "alternate" realm, there would be no reason the character couldn't be played by another actor.