Add a separate function that calculates text selection box positioning given a string's selection start and end offsets. Moves this to a better place and allows to have more complex boxes in future when we might have multi-line and/or multi-directional text input. Pull Request: https://projects.blender.org/blender/blender/pulls/121448