Closes #29657 Using `with_clipboard_data()` to ensure that `GlobalLock` and `GlobalUnlock` are called correctly. Release Notes: - N/A