set-minibuffer-window

set-minibuffer-window is a built-in function in `C source code'.

(set-minibuffer-window WINDOW)

Specify which minibuffer window to use for the minibuffer.
This affects where the minibuffer is displayed if you put text in it
without invoking the usual minibuffer commands.