How to draw something into front window?

Hello, I want to screencapture a part of a window, ocr it,

do some calc with it, and nicely display the result in it,

like some non-intruding text or tooltip, how do I do it?

(I already know previous steps and know displays result in a window with shell script,

but it's quite ugly and intruding)