Ah, you are on xubuntu.
Edit:
Short version:
Make sure you don't have a stack inspector open. Every time I have a stack inspector open, I can't get a focus in the script editor window. I know about that though, and it's what's prompting me to make my own. (I'd have it finished if it wasn't for having to deal with Widgets, which is causing me a headache - and
makes the iteration through font issue look trivial).
Anyway...
Long version (which you can ignore if the short version worked):
If you've got the "Application Browser" open too, things are probably trying to toplevel themselves and having issues.
Please try turning this off, which might help:

- troubleshooting B.png (9.5 KiB) Viewed 1311 times
Or close the inspector if you have it open.
(it really depends on what windows you have open right now) - I know it shouldn't, but it does. I'm fighting the engine here.
I know that the 'buntus are problematic with OXT - and LCC is almost unusable out of the box with them I found.
You might have to play around a bit with these settings:

- troubleshooting A.png (36.46 KiB) Viewed 1311 times
I mean,
it shouldn't do this so much now, but it does still do some weird stuff from time to time.
This is because of Linux windowmanager incompatibilities, as we know - no concept of systemwindow (even though MacOS and Windows do), so workarounds have to be put in place. Another reason why I want to change the engine underneath, not that any of that is going to happen any time soon.
Video of this working in xubuntu here.
Why are there so many options?
Partly because Linux can vary so much, and partly because some window managers just don't play well with the IDE. So these options are put in so that they can be tweaked for each distro if needed (mostly they don't need much adjustment now), but the 'buntus are known to give window juggling and focus issues. This has largely been corrected, the last part of that correction is dealing with the errant Inspector palette - which will happen.... one day.