<details>

<summary style="cursor: pointer">

## Platform-specific Caveats

</summary>

* macOS: You must call this function from the main thread.
* Windows: You must have an event loop running on the main thread to receive
  updates when preferences are changed.
* Web: You must call this function from the main thread.

</details>
