Added MDI support on Windows