windows: Remove `SmartGlobal` (#30366)

Closes #29657

Using `with_clipboard_data()` to ensure that `GlobalLock` and
`GlobalUnlock` are called correctly.

Release Notes:

- N/A
89ce49d5b7张小白 committed on 5/9/2025, 12:05:53 PM· committed by GitHubparent30f3efe
2 files changedLine totals unavailable