I don't have Windows 11 due to Microsoft limitations, so MAMEUI is not officially supported on that OS.
However I assume that other people know if it works or not. I've never heard of the black screen problem but assume it's a local issue with your video.
Let's see if anyone else knows something.