The Multi/Sub-Object material lets you assign different materials at the sub-object level of your geometry. You create a multi-material, assign it to an object, and then use the Mesh Select modifier to select faces and choose which of the sub-materials in the multi-material are assigned to the selected faces.
this tutorial will show how to add martial in complex object like window and door.