You should define an alias:
from System.Windows import WindowState as WindowState1
from ESS.MS.Framework.UIG.Mask import WindowState as WindowState2
or for the entire module
import System.Windows as Module1
import ESS.MS.Framework.UIG.Mask as Module2
//...
Module1.WindowState
Module2.WindowState
PS. choose of course better aliases