Microsoft has published a set of guidelines for implementing IMEs and has notes about third-party IMEs. They have also published [a sample IME.
Hope above information can help you.
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Your question seems to be related to the development.
It is recommended to post in github for more help.
You can also see if the content of the following link is helpful to you:
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Thank you for your understanding.