### Description If theme.json uses a `ref` value for a property, the Site Editor doesn't understand this property and throws an error: ### Step-by-step reproduction instructions 1. Use a theme that uses `refs` for a theme.json property (e.g. Rainfall) 2. Try to edit that property (for Rainfall it's links) <img width="915" alt="Screenshot 2022-08-02 at 09 46 16" src="https://user-images.githubusercontent.com/275961/182332920-5cac5e6e-e348-455a-8c8b-28f2754ba4f2.png"> 3. The editor throws an error: <img width="917" alt="Screenshot 2022-08-02 at 09 45 43" src="https://user-images.githubusercontent.com/275961/182332791-4e250ff2-d2d2-40a6-8535-612b749fb366.png"> Probably connected, we see this in the inspector: <img width="530" alt="Screenshot 2022-08-02 at 09 52 26" src="https://user-images.githubusercontent.com/275961/182334363-5a214477-0ace-437a-8f06-415b98b4454e.png"> ### Screenshots, screen recording, code snippet _No response_ ### Environment info _No response_ ### Please confirm that you have searched existing issues in the repo. Yes ### Please confirm that you have tested with all plugins deactivated except Gutenberg. Yes