I agree with @pin, using wpa_supplicant is super easy and well documented. That being said I am porting (well, trying to port) networkmgr to NetBSD; just as a side project. You know, one of those... "I wonder if I could do that" projects.
There will be a massive amount of change sense the current version of networkmgr uses a lot of FreeBSD commands to pull information about the network cards.
Secondly, networkmgr does use Gtk libraries to create a mate/xfce4 panel icon and configuration GUI. I personally think Eric is totally on the right path here.
Thirdly, as stated above, networkmgr does rely on devd. My (very limited) understanding is that devd monitors devices. When there is a change in device status, networkmgr can be notified. Maybe for NetBSD networkmgr can employ it's own daemon or run in the background watching for changes in networks devices. I don't know.