Not a new function, just a way to influence make_frame to not test the current buffer being hidden.

On Sat, Jan 25, 2025 at 11:43 AM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Ship Mints <shipmints@gmail.com>
> Date: Sat, 25 Jan 2025 11:31:31 -0500
> Cc: stefankangas@gmail.com, 75828@debbugs.gnu.org
>
> I appreciate the tips and discussion.
>
> (let ((pop-up-frames t))
>   (pop-to-buffer " *string-pixel-width*"))
>
> is identical to the wonky snippet, first showing the unwanted buffer then switching to the wanted buffer (and
> first paying the display cost for the original buffer).

That still doesn't justify a new function, IMO.  But maybe Martin will
have even better suggestions.