Notification show on top of Dialog

We have implemented error handler, So if any error/validation/exception comes we are using our own Custom error handler and in error handler we are showing Notification. It works well for screens, notification coming on top of screen.
But when we open dialog and if we need to show Notification it’s appear behind Dialog not on top up.
I got this text from assistance like
Unfortunately, you cannot make a notification appear on top of a dialog, as the dialog will always take precedence as a modal component

Is there any way to display Notification on top of Dialog with Middle alignment.

It depends which one is opened first. Did you get that assistance from AI? Which one?

I got text from below
https://vaadin-docs-assistant.fly.dev/
We 1st open dialog and on click of button we generally showing validation message with help of Notification , but somehow Notification window coming behind Dialog, with this user is not able to see Notification message because it’s hide behind Dialog.

is it behaviour ? or I need to do something which I missed.