A woman delivered her baby in a Brooklyn courtroom while she was being arraigned on a drug charge.