You can? As long as you have keyboard/mouse (which the Magic Keyboard qualifies as)
I recall: using stage manager, plugging into monitor via USB-C, going into Settings to disable mirroring/enable as external display, ensuring you have a mouse/keyboard connected to the iPad, and then just clicking the iPad screen off with the lock/unlock button.
lmk if that works!