Sounds like due process was exactly what she got. Are you suggesting everybody gets a trial before they are deported? Or that the US has to allow you to enter if you do so legally, determined by trial? Either will result in much, much longer deportation times.
Usually not a the border, no, because there it's an administrative thing, but then you are sent back to your originating country.
However, if arrested within the borders, yes, it becomes a different matter where you _are_ going through a judicial process, to assess whatever should happen, and why exactly (and to document the process).