Show Microphone and Camera Permission Pop-up in the Centre like Google Meet in Google Chrome

Google Meet has recently updated their UI (ref). As per the new UI, the microphone and camera permission pop-up (/ confirmation dialog) is prompted in the centre of the screen while dimming out the rest of the screen (image reference attached).

Google Meet Permission Pop-up

I would like to replicate the same, but I’m unable to find any documentation on the same.

How can I achieve that?

I tried using navigator.mediaDevices.getUserMedia() which opens the permission dialog in the top left corner.