Adding A New account to Metamask using Web3.js

https://ethereum.stackexchange.com/questions/145032/adding-a-new-account-to-metamask-using-web3-js

I want to create a new account for the user, add and display this new account in MetaMask.
I have created a new account using :
let walletWeb3 = await web3.eth.accounts.create();

and passed its private key to:
web3.eth.accounts.wallet.add(walletWeb3.privateKey);

But the above method is not adding the account created by .create() to the metamask.

The code:

const ethereum= await window.ethereum;
const web3=new Web3(ethereum);
ethereum.enable()
let walletWeb3 = web3.eth.accounts.create();
const privateKey=walletWeb3.privateKey
web3.eth.accounts.wallet.add(privateKey);

Is there any other way to do this?
Thank You.