I defined a global tooltips behavior for the developers to use in all cases they will face as a guideline. I did a research about this issue but I didn't find anything really relevant. Finally, I decided to divide the screen into 6 parts, where in each area the tooltips will behave differently: Top: left, middle, right. Bottom: left, middle, right.
See below the map I created:
Is there any other way to define it?