Okta SSO with Desktop App

We have one use case where we need to perform okta integration with desktop enterprise standalone application and perform the SSO. I need guidance on the following points,

  1. Which SDK needs to be used for Okta sso?
    2.We are planning to use authorization code with PKCE flow but we don’t have any web application, so is it possible to achieve it from the java backend and any reference for it?
  2. How to use the access token for the single sign-on? How to share the session between desktop application and mobile application.