One simple way of doing this is using the relatedList
tag on your VF page.
Below is for another object, but you could adapt it as per your requirement. You can use below as it is to see how it works.
VF
<!-- Make sure you are passing an Opportunity Id to this page -->
<apex:page standardController="Opportunity" extensions="OpportunityExtn">
<apex:form>
<apex:outputLabel value="Show Related List">
<apex:actionSupport action="{!showSection}" reRender="section" event="onmouseover"/>
<apex:actionSupport action="{!hideSection}" reRender="section" event="onmouseout"/>
</apex:outputLabel>
</apex:form>
<apex:outputPanel id="section">
<apex:relatedList list="OpportunityLineItems" rendered="{!show}">
</apex:relatedList>
</apex:outputPanel>
</apex:page>
Controller
public class OpportunityExtn {
String contact;
Public Boolean show{get; set;}
public OpportunityExtn(ApexPages.StandardController controller) {
show=false;
}
public void showSection(){
show = true;
}
public void hideSection(){
show = false;
}
}