There is not any official documentation/reference to track desktop applications using Adobe Analytics as far as I know. I am also not sure if that is covered by the contract to track desktop applications as it is usually for websites and mobile apps.
I have no knowledge of the Electron framework. But if it can run the desktop application just like running a localhost website on a user's computer with an embedded browser, you may track it as if is a website with Adobe Launch, and of course, the tracking will only happen when the user's computer is connected to the Internet.
However, if the desktop application runs natively without any context for JavaScript execution, you have a hard way to go for implementing the tracking by either
In both cases, the challenge is how to maintain the user identity manually, as there are Adobe Visitor ID services for both websites and mobile apps, which is missing in the desktop application scenario.