Kms10 wrote:
When I open any window (even top menu bar) it loses its focus (in case of menu bar it just closes) after some time (random). I cannot use anything with text input for example, because focus is switched randomly when I type something in.
This is a very major issue for me, because my computer is literally unusable right now.
Have you shut down and restarted more than once since your upgrade to Tahoe...(?)
What apps exactly you do not say.
Try quitting the problem app and relaunch it holding the Shift key down and compare your results.
View open windows and spaces in Mission Control on Mac
try turning off the bells and whistle here and get back to terra firma, and compare your results
.

You can alwys Call Customer Support (800) MY–APPLE (800–692–7753)
or on line https://getsupport.apple.com/
or call AppleCare Support at 1-800-APLCARE (800-275-2273)
Outside the USA—Contact Apple for support and service by phone
See a list of Apple phone numbers around the world.
Contact Apple Support - Apple Support