Hello.
One day I wanted to add the features described in the title and have got come results. I used some features of FreeRTOS and manipulations with guts of the existing code.
I believe that my implementation is not a good one and needs refinements. But it somehow works and may be helpful for the people who want to have the features of this kind.
Here is the link to modified grbl.ini file:
https://github.com/romulie/ESP32grblOLEDandJoystick
Best wishes.