The three-dimensional organization of chromatin is influenced by DNA-binding proteins, through specific and non-specific interactions. However, the role of DNA sequence and interaction between binding proteins in influencing chromatin structure is not yet fully understood. By employing a simple polymer-based model of chromatin, that explicitly considers sequence-dependent binding of proteins to DNA and protein-protein interactions, we elucidate a mechanism for chromatin organization. We find that: (1) Tuning of protein-protein interaction and protein concentration is sufficient to either promote or inhibit the compartmentalization of chromatin. (2) The presence of chromatin acts as a nucleating site for the condensation of the proteins at a density lower than in isolated protein systems. (3) The exponents describing the spatial distance between the different parts of the chromatin, and their contact probabilities are strongly influenced by both sequence and the protein-protein attraction. Our findings have the potential application of re-interpreting data obtained from various chromosome conformation capture technologies, thereby laying the groundwork for advancing our understanding of chromatin organization.