Implement Windows Pen Protocol


Windows has a defined protocol for handling digital pen interactions, which allows for a uniform experience across software packages. Miro currently does not support this protocol properly - in particular, the erase functionality is not respected, which means that erase buttons (or the rear erase tip on some styluses) does not work as expected, but instead works in the same way as the writing tip does. It would be really helpful if Miro implemented the erase functionality of the Windows Pen Protocol properly, as this allows the user to quickly and naturally swap between the pen and erase tools without having to use any of the on-screen buttons. As this protocol is part of Windows, it works across all manufacturers of digital styluses.

https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states

This actually refers to using the windows ink service in the miro application. 
see here how easy this is using it in a windows application. 
Support ink in your Windows app - Windows apps | Microsoft Learn