yes it will open in separate portal window, since in that method it's hard-coded navigation mode as EXT_PORT.
ls_wd_param-navigation_mode = 'EXT_PORT'.
You can create post exit and modify this parameter value as EXT_HEAD. Then it will work as per your requirement.