The best is to weld a derailleur hanger on. Other than that it may depend on what derailleur you want to use. The older pre-indexing derailleurs were available with a bolt on hanger. These would work in most cases. Some cheaper indexing ones may have hangers available, not sure anymore. A bigger issue maybe the rear end width. Most BMX bikes were built for singles at 110mm, Derailleur bikes are spaced at 120mm-126mm-130mm-135mm depending on the hub and number of gears.