Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene” Scene
3. In the Hierarchy window, select “TEST OBJECT”
4. In the Inspector window, expand the submenus of “Test Indent Level” in both of the script components
5. Observe the indentation of “Test Field” variable in both of the script components
Expected result: The indentation is the same in both scripts
Actual result: “Script With Custom Editor” script’s “Test Field” is more indented to the right
Reproducible with: 2022.3.20f1, 2022.3.26f1, 2023.2.20f1, 6000.0.0f1
Not reproducible with: 2021.3.37f1, 2022.3.19f1
Reproducible on: Windows 11
Not reproducible on: No other environments tested