There was no "misdirecting" here. The judge truthfully told the agents they wouldn't be allowed to detain someone in the middle of a hearing without exceptional permission, at which point they all left, apparently didn't even bother to watch the courthouse doors, and upon their return had the judge arrested for not detaining a man it wasn't her job or legal authority to detain.
Per the criminal complaint, despite a federal warrant for Flores-Ruiz's arrest, Judge Dugan escorted Flores-Ruiz through a non-public jury door to escape arrest.