How to add a game overlay window using electron

Creating electron-nextjs application.While playing game electron overlay window on the top of the game window must be shown .
is there any way to achieve this .Please help