[InputMethod] Add logic to set whether IME is called from dotnet