If you’re running macOS 10.15, the Pen Calibration function does not work. The calibration window is displayed on the primary monitor and it can’t be dismissed.

What you can do about it while we fix it: If this happens, you can recover by force quitting System Preferences using Command + Option + Escape.