I don't see why this is needed, just lunch the binary with sudo.
E.g.
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit
Found this after a Google search for "graphical sudo OS X"
The AppleScript approach seems to (mostly) fit that bill.I need something, what is buildt-in.