Hello @Angel Caron
This may be normal Windows behavior rather than a Windows 11 issue.
Windows intentionally restricts applications from automatically taking foreground focus. Microsoft documents that an application may be prevented from bringing its window to the foreground while you're working in another window; in that situation, Windows can instead notify you by flashing the application's taskbar button.
Since you're seeing this with different programs, the key question is whether the security-code window appears but doesn't automatically receive keyboard focus, or whether the popup isn't appearing at all.
If the window appears but isn't focused, that can be consistent with Windows' foreground-window restrictions. The behavior also depends on how the individual application implements its authentication dialog.
If you can provide the name of one application where this happens and describe exactly what you see when the security-code prompt appears, we can check whether that application has a documented issue or setting affecting the behavior.
Reference: SetForegroundWindow function
Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.