Combine onion, butter, mustard, bacon and poppy seeds. Spread on both slices of bread.
Place ham and cheese on bottom slice and top with other slice.
Wrap loaf in foil. Bake at 350° for 20-25 minutes. Serve hot.