I created this abstract with Purr Data (Pd-l2ork-2.13.0 20200802-rev.70066071). I don't know if it works in other versions... I know that recent versions of Pd has [pdcontrol], PurrData doesn't have it yet. Instead of that, I use get.dollarg.pd found in this thread, thanks to @weightless and everybody in that thread.
Arguments passed to the abstract automatically creates some objects (inlet, route, outlets) and canvas and arrange everything to make it work.
Important: this patch uses some magic numbers to connect objects. If you change it, those numbers don't work any more and patch stops working.