What you can do is have a very simple web server in the application listening to localhost and providing a single page. Use implicit auth flow with that page and have a script on the page POST the token to the very same URL and have your application grab it at that point. Copying from the page instead of having the page POST it would work just as well.
This means you don’t need to have a server and don’t need to distribute your application secret to your clients (which you should definitely not do). It’s also functionally (and security-wise almost) the same as implementing a browser within the application to use implicit flow directly.