Rooting using Windows Application or APK
Some devices need that thing(custom recovery/pre-root) to "set the road" to the root application. Take in mind that rooting a device is exploiting a system bug to gain root access.

Because of that I don't think that would be possible for an app to root the device just for one app. It's the entire device what is rooted, not just an app.