Usually they were curses pronounced as the person died, but a rare iteration was rather like an Unbreakable Vow. If Draco refused, Theo would not pass on after death but instead linger as a ghost, attempting to fulfil the wish himself. If Draco accepted and then broke his word, Theo would come back from the afterlife and haunt him. 