Use editor script open Unity's persistent folder

As showing above, I’m writing something useful tools for my project.
I need to open persistent folder frequently, so I plan to write a editor to do this.
but Application.persistentDataPath is not allowed to be called in editor mode.

So what should I do?

Thanks!

We use Application.persistentDataPath constantly at edit time. There’s no problem with doing that. What makes you believe it’s not allowed?