Custom Action openUrl function open in new window

Custom Action openUrl function open in new window

Hello, I have scripted a custom action to openUrl but when I click on the action, it replaces the current page with the URL. How can I make the URL open in a new window? I have used the script below

  1. void openUrl(string Email)
  2. {
  3.     openUrl("https://mail.google.com/mail/ca/u/0/#search/from%3A" + input.Email + "+OR+to%3A" + input.Email, " New window");
  4. }