Implement `bounds_for_range`, so that text input windows are positioned correctly (#3278)

![Screenshot 2023-11-08 at 5 33
10 PM](https://github.com/zed-industries/zed/assets/326587/09efd785-2c43-41b2-9429-c17067497fd2)

![Screenshot 2023-11-08 at 5 33
28 PM](https://github.com/zed-industries/zed/assets/326587/14a9faee-3547-40b6-a31f-16f653cdcb36)
2bf8616a48Max Brunsfeld committed on 11/9/2023, 1:38:11 AM· committed by GitHubparentsb90e34a4350801
9 files changedLine totals unavailable