Not sure how hard this would be to implement, but it would be a nice quality of life improvement for those who use a keyboard shortcut to open the emoji selector while writing.
Opening the window next to the text cursor instead of top right corner of the display would make the experience more smooth and less distracting, as you won't have to focus your eyes away from what you were writing.
This is how emoji selector works on windows, for example.
