Words mean things.
Due process is literally the “mechanical” process - not the outcome.
Due process is principle of fairness in the execution of legal matters. All legal procedures set by statute and court practice, including notice of rights, must be followed for each individual so that no prejudicial or unequal treatment will result.
The process can be followed 100% and still produce a result later found unjust or unconstitutional.
Stepping away from the DV aspect, and having extensive professional experience with both the violent mentally ill and sex offenders, there’s good reason both groups subject to civil commitment. Hopefully you and your family never experience what either group is capable of.
While I have concerns about the application of the restraining orders to 2A rights, your mischaracterization of the civil commitment process is throwing the baby out with the bathwater.