This has the same functionality as Application.platform and also mimics platform-specific behavior in the Unity Editor.